//
// Created by masaikk on 2021/4/29.
//

#ifndef CT_SET2_H
#define CT_SET2_H
#include <set>
#include <iostream>
using namespace std;

class Set2{
private:
    multiset<int> multiset;
public:
    void addElem(){
        this->multiset.insert(1);
        this->multiset.insert(1);
        this->multiset.insert(4);
        this->multiset.insert(5);
        this->multiset.insert(1);
        this->multiset.insert(4);
    };

    void showMuSet(){
        for(int a: this->multiset){
            printf("%d\n", a);
        }
        printf("size of this set is %d",this->multiset.size());
    }

    void execute1(){
        this->addElem();
        this->showMuSet();
    }
};

#endif //CT_SET2_H
